package cn.assumejson.springframework.aop.bean;

import cn.assumejson.springframework.context.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Mr. Li
 * @version 1.0
 * @since 1.0 2021/12/3 12:01
 */
@Component
public class UserDao {
    private static Map<String, String> hashMap = new HashMap<>();

    static {
        hashMap.put("10001", "小刚刚，成都，双流");
        hashMap.put("10002", "小刚哇，上海，浦东");
        hashMap.put("10003", "小刚娃儿，湖北，孝感");
    }

    public String queryUserName(String uId) {
        return hashMap.get(uId);
    }
}
